<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 

<% 
	String path = request.getContextPath(); 
	String basePath = request.getScheme()+"://"+request.getServerName()
		+":"+request.getServerPort()+path+"/"; 
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.min.js"></script>
<link href='<%=basePath%>extend/css/print.css' rel="stylesheet"/>
<title>经销商大客户业务报备表</title>
</head>
<body class="content">
<div class="title">
	<h1>经销商大客户业务报备表</h1>
	<div class="time_label"></div>
	<!-- <button id="bt_export" class="btn_print hidden-print" type="button">打印</button> -->
</div>
<table class="table-grid" style="text-align: left;">
	<colgroup>
		<col width="15%" />
		<col width="15%" />
		<col width="10%" />
		<col width="13%" />
		<col width="10%" />
		<col width="37%" />
	</colgroup>
	<tbody>
		<tr>
			<td>申请经销商</td>
			<td>${mapMaster.dealer}</td>
			<td>区域</td>
			<td>${mapMaster.area}</td>
			<td>申请日期</td>
			<td>${mapMaster.applytime}</td>
		</tr>
		<tr>
			<td rowspan="2" valign="middle">经销商联系人</td>
			<td rowspan="2" colspan="2">${mapMaster.dealeruser}</td>
			<td rowspan="2" valign="middle">联系方式</td>
			<td>手机</td>
			<td>${mapMaster.dealermobile}</td>
		</tr>
		<tr>
			<td>邮箱</td>
			<td>${mapMaster.dealeremail}</td>
		</tr>
		<tr>
			<td>机构名称</td>
			<td colspan="2">${mapMaster.org_name}</td>
			<td colspan="2">客户类型</td>
			<td>${mapMaster.custm_type}</td>
		</tr>
		<tr>
			<td>单位性质</td>
			<td colspan="2">${mapMaster.org_type}</td>
			<td colspan="2">行业分类</td>
			<td>${mapMaster.industry}</td>
		</tr>
		<tr>
			<td>开发状态</td>
			<td colspan="2">${mapMaster.develop_status}</td>
			<td>规模</td>
			<td colspan="2">${mapMaster.customersize}</td>
		</tr>
		<tr>
			<td>生效日期</td>
			<td colspan="2">${mapMaster.startdate}</td>
			<td>失效日期</td>
			<td colspan="2">${mapMaster.enddate}</td>
		</tr>
		<tr>
			<td rowspan="2" valign="middle">客户联系人</td>
			<td rowspan="2" colspan="2">${mapMaster.kehu_linkedman}</td>
			<td rowspan="2" valign="middle">联系方式</td>
			<td>手机</td>
			<td>${mapMaster.kehu_mobilephone}</td>
		</tr>
		<tr>
			<td>邮编</td>
			<td>${mapMaster.kehu_post}</td>
		</tr>
		<tr>
			<td height="100">项目简介</td>
			<td colspan="5">${mapMaster.remark}</td>
		</tr>
		<tr>
			<td rowspan="4">难点分析</td>
			<td>产品难点</td>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td>价格难点</td>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td>促销难点</td>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td>公共关系难点</td>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td>需求车型</td>
			<td colspan="2">需求数量</td>
			<td colspan="2">需求车型</td>
			<td>需求数量</td>
		</tr>
		<c:forEach items="${listVhcl}" var="item" varStatus="status">
			<c:if test="${status.count%2==1}">
				<tr>
					<td>${item.seriesname}</td>
					<td colspan="2">${item.fact_number}</td>
				<c:if test="${status.last}">
					<td colspan="2"></td>
					<td></td>
				</tr>
				</c:if>
			</c:if>
			<c:if test="${status.count%2==0}">
					<td colspan="2">${item.seriesname}</td>
					<td>${item.fact_number}</td>
				</tr>
			</c:if>
		</c:forEach>
		<tr>
			<td>总计</td>
			<td colspan="5">${mapMaster.total_factnumber}</td>
		</tr>
		<tr>
			<td height="50">下一步工作计划</td>
			<td colspan="5"></td>
		</tr>
		<tr>
			<td height="100">申请经销商：（总经理签字、盖公司章）</td>
			<td colspan="1">区域大客户经理签审：</td>
			<td></td>
			<td colspan="1">大区总监签审：</td>
			<td></td>
			<td colspan="1">审核意见：</td>
		</tr>
	</tbody>
</table>
<p style=" page-break-after:always;">&nbsp;</p>
<table class="table-grid" style="text-align: center; width:60%">
	<colgroup>
		<col width="15%" />
		<col width="15%" />
		<col width="10%" />
		<col width="13%" />
		<col width="10%" />
		<col width="37%" />
	</colgroup>
<tbody>
<tr>
<td colspan="3">附客户联系人名片</td>
</tr>
<tr>
<td height="200"></td>
</tr>
<tr>
<td height="200"></td>
</tr>
</tbody>
</table>
</body>
<script type="text/javascript">
$(document).ready(function(){
		var myDate = new Date();
		var Week = ['日','一','二','三','四','五','六'];  
	    str = '星期' + Week[myDate.getDay()];
		var mytime=myDate.getYear()+"-"+myDate.getMonth()+"-"+myDate.getDate()+"&nbsp;"+myDate.getHours()+":"+myDate.getMinutes()+":"+myDate.getSeconds()+"&nbsp;"+str;
		window.print();
});
</script>
</html>
